package com.bawei.detail

import com.bawei.common.entity.CommendEntity
import com.bawei.common.entity.MovieEntity
import com.bawei.common.mvi.BaseUiState
import com.bawei.detail.entity.AuthorEntity

sealed class DetailUiState: BaseUiState(){
    object LoadEmpty : DetailUiState()
    data class LoadAuthorSuccess(val entity: AuthorEntity): DetailUiState()
    data class LoadAuthorFail(val msg: String): DetailUiState()
    data class LoadMovieListSuccess(val list: List<MovieEntity>) : DetailUiState()
    data class LoadMovieListFail(val msg: String) : DetailUiState()
    data class LoadMovieCommendSuccess(val list: List<CommendEntity>) : DetailUiState()
    data class LoadMovieCommendFail(val msg: String) : DetailUiState()
}
